home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / keyb / cedwars2.zip / CEDINS.DOC < prev    next >
Text File  |  1988-09-07  |  2KB  |  65 lines

  1.  
  2. The following patches modify CED to default to insert (instead of
  3. overtype) mode for each line, and to not reset the mode when
  4. moving up or down the stack, which is more like typical text
  5. editors.  Note that the mode toggling function of the <Ins> key
  6. is not affected, but that the block cursor now signifies overtype
  7. (instead of insert) mode.
  8.  
  9.      The first patch bypasses the automatic mode reset that
  10.      normally occurs whenever the up or down arrow keys are
  11.      pressed, leaving the mode unchanged instead.
  12.  
  13.      The second patch reverses the mode byte (4CC) logic, so that
  14.      zero means insert mode and non-zero means overtype mode.
  15.  
  16. Of course, before the patches are applied the program should be
  17. backed up! (Either DEBUG or SYMDEB may be used.)
  18.  
  19.  
  20.      C>copy ced.com ced.bak
  21.              1 File(s) copied
  22.  
  23.      C>symdeb ced.com
  24.      Microsoft Symbolic Debug Utility
  25.      Version 3.01
  26.      (C)Copyright Microsoft Corp 1984, 1985
  27.      Processor is [8086]
  28.      -u 642 64a
  29.      2330:0642 C606CC0401     MOV       Byte Ptr [04CC],01
  30.      2330:0647 E87A01         CALL      07C4
  31.      2330:064A 5E             POP       SI
  32.      -a 642
  33.      2330:0642 jmp 64a
  34.      2330:0644
  35.      -u 642 64a
  36.      2330:0642 EB06           JMP       064A
  37.      2330:0644 CC             INT       3
  38.      2330:0645 0401           ADD       AL,01
  39.      2330:0647 E87A01         CALL      07C4
  40.      2330:064A 5E             POP       SI
  41.      -u 7fa 7ff
  42.      2330:07FA F606CC04FF     TEST      Byte Ptr [04CC],FF
  43.      2330:07FF 750E           JNZ       080F
  44.      -a 7ff
  45.      2330:07FF jz 80f
  46.      2330:0801
  47.      -u 7fa 7ff
  48.      2330:07FA F606CC04FF     TEST      Byte Ptr [04CC],FF
  49.      2330:07FF 740E           JZ        080F
  50.      -w
  51.      Writing 1BF4 bytes
  52.      -q
  53.  
  54.      C>
  55.  
  56.  
  57. 09/07/88
  58.  
  59.  I went ahead and used SYMDEB to patch CED to insert mode as described in the 
  60. above file. Everything went as described and the insert-mode works fine. I 
  61. have gotten used to overtype mode, but a lot of people prefer insert. The 
  62. patched file is included here as CEDINS.COM. 
  63.                                              
  64.                                                         Dave Williams
  65.